#ifndef IDENTIFYDIALOG_H
#define IDENTIFYDIALOG_H

#include <QDialog>
#include "imageprocesser.h"

class IdentifyDialog : public QDialog
{
    Q_OBJECT
public:
    IdentifyDialog(QImage *orig , QWidget *parent = 0);
    unsigned char GetThreshold();
    unsigned char GetErodeSize();
    unsigned char GetDilateSize();

public slots:
    void ThresholdSliderChanged();
    void ThresholdSpinChanged(int t);
    //void TestThreshold();
    //void TestErode();
    //void TestDilate();
    void TestParameters();

private:

    QSlider *thresholdSlider;
    QSpinBox *dilateSpin;
    QSpinBox *erodeSpin;
    QSpinBox *thresholdSpin;
    QImage *img;
    QLabel *procImage;



};

#endif // IDENTIFYDIALOG_H

